//
//  CommunityNoticeVC.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/11/25.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "CommunityNoticeVC.h"
#import "CommunitiNoticeCell.h"
@interface CommunityNoticeVC ()

@end

@implementation CommunityNoticeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"社区通知";
    
    self.plainTableView.tableFooterView = [[UIView alloc]init];
    
    self.plainTableView.backgroundColor = [UIColor whiteColor];
    
    
    self.plainTableView.rowHeight = UITableViewAutomaticDimension;
    
    self.plainTableView.estimatedRowHeight = 100;
    
    [self.plainTableView registerNib:[UINib nibWithNibName:NSStringFromClass([CommunitiNoticeCell class]) bundle:nil] forCellReuseIdentifier:[CommunitiNoticeCell identifierStr]];
    
    
    if (@available(iOS 11.0, *)) {
        self.navigationItem.largeTitleDisplayMode =  UINavigationItemLargeTitleDisplayModeNever;
    }
}




- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    
    return 1;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 20;
    
    
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
   
            
            CommunitiNoticeCell *cell = [tableView dequeueReusableCellWithIdentifier:[CommunitiNoticeCell identifierStr]];
            
    
            return cell;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
